package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.Employee;
import com.san.hkhospital.entity.EmployeeExample;

import java.util.List;
import java.util.Map;

import com.san.hkhospital.vo.EmpTableVo;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName:EmployeeMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface EmployeeMapper {
    long countByExample(EmployeeExample example);

    int deleteByExample(EmployeeExample example);

    int deleteByPrimaryKey(Integer empId);

    int insert(Employee record);

    int insertSelective(Employee record);

    List<Employee> selectByExample(EmployeeExample example);

    Employee selectByPrimaryKey(Integer empId);

    int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);


    //********************************************************

    //员工添加方法
    int insertSome(Integer empId);

    //查询所有员工，连表*4
    List<EmpTableVo> selectAll();

    //搜索查询
    List<Employee> searchEmployee(Map<String, String> params);
}